#整合编译并发布

.PHONY:all
all:
	@cd Compile_Server;\
	make;\
	cd -;\
	cd OJ_Server;\
	make;\
	cd -;

.PHONY:output
output:
	@mkdir -p output/Compile;\
	mkdir -p output/OJ;\
	cp -rf Compile_Server/compile_server output/Compile/;\
	cp -rf Compile_Server/temp output/Compile/;\
	cp -rf OJ_Server/conf output/OJ/;\
	cp -rf OJ_Server/ctemplateHTML output/OJ/;\
	cp -rf OJ_Server/questions output/OJ/;\
	cp -rf OJ_Server/wwwroot output/OJ/;\
	cp -rf OJ_Server/oj_server output/OJ/;


.PHONY:clean
clean:
	@cd Compile_Server;\
	make clean;\
	cd -;\
	cd OJ_Server;\
	make clean;\
	cd -;
	rm -rf output;